<template>
	<div id="app">
		<router-view />
		<theme-picker />
	</div>
</template>

<script>
import ThemePicker from '@/components/ThemePicker';

export default {
	name: 'App',
	components: { ThemePicker },

	metaInfo() {
		return {
			title:
				this.$store.state.settings.dynamicTitle &&
				this.$store.state.settings.title,
			titleTemplate: (title) => {
				return title
					? `${title} - ${process.env.VUE_APP_TITLE}`
					: process.env.VUE_APP_TITLE;
			},
		};
	},
};
</script>
<style scoped>
/* 自定义滚动条样式 */
/* ::v-deep .el-table__body-wrapper::-webkit-scrollbar {
	width: 10px !important;
	height: 40px !important;
}
 */


::v-deep .el-table__body-wrapper::-webkit-scrollbar {
	width: 10px;
	height: 10px;
}

::v-deep .el-table__body-wrapper::-webkit-scrollbar-thumb {
	/* 深灰色 */

	background-color: #999;
	border-radius: 50px;
}

#app .theme-picker {
	display: none;
}

/* 给 treeselect 添加固定高度并启用溢出自动显示滚动条 */
::v-deep.vue-treeselect__menu {
	max-height: 200px !important;
	/* 设置菜单最大高度 */
	overflow-y: auto;
	/* 启用垂直滚动条 */
}

::v-deep .el-tabs__nav-wrap::after {
	background-color: #fff !important;
}

::v-deep label>>>.el-form-item__label {
	word-break: break-word !important;
}
</style>
